package com.tulink.yichutu.common.job.task;

import com.tulink.yichutu.biz.LoginBiz;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 扫码记录清理任务
 *
 * @author wanchaopeng
 */
@Component("qrcodeCleanTask")
public class QrcodeScanRecordCleanTask {
    private Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
	LoginBiz loginBiz;

	public void run(String params){
		logger.info("开始清理扫码记录");
		Integer count = loginBiz.cleanQrcodeScanRecord();
		logger.info("清理扫码记录完成：{}", count);
	}
}
